<div>

    <div class="ibox ">
        <div class="ibox-title">
            <h5>
                <vc:i18n name="查询条件" namespace="repairSetting"></vc:i18n>
            </h5>
            <div class="ibox-tools" style="top:10px;">
            </div>
        </div>
        <div class="ibox-content">
            <div class="row">
                <div class="col-sm-2">
                    <div class="form-group">
                        <input type="text" :placeholder="vc.i18n('请输入类型名称','repairSetting')"
                            v-model.trim="repairSettingInfo.conditions.repairTypeName" class=" form-control">
                    </div>
                </div>
                <div class="col-sm-2">
                    <select class="custom-select" v-model="repairSettingInfo.conditions.repairWay">
                        <option selected value="">{{vc.i18n('请选择派单方式','repairSetting')}}</option>
                        <option v-for="(item,index) in repairSettingInfo.repairWays" :key="index"
                            :value="item.statusCd">{{item.name}}
                        </option>
                    </select>
                </div>
                <div class="col-sm-2">
                    <select class="custom-select" v-model="repairSettingInfo.conditions.repairSettingType">
                        <option selected value="">{{vc.i18n('请选择报修设置类型','repairSetting')}}</option>
                        <option v-for="(item,index) in repairSettingInfo.repairSettingTypes" :key="index"
                            :value="item.statusCd">{{item.name}}
                        </option>
                    </select>
                </div>
                <div class="col-sm-2">
                    <select class="custom-select" v-model="repairSettingInfo.conditions.publicArea">
                        <option selected value="">{{vc.i18n('请选择区域','repairSetting')}}</option>
                        <option v-for="(item,index) in repairSettingInfo.publicAreas" :key="index"
                            :value="item.statusCd">{{item.name}}
                        </option>
                    </select>
                </div>
                <div class="col-sm-2">
                    <select class="custom-select" v-model="repairSettingInfo.conditions.returnVisitFlag">
                        <option selected value="">{{vc.i18n('请选择是否回访','repairSetting')}}</option>
                        <option v-for="(item,index) in repairSettingInfo.returnVisitFlags" :key="index"
                            :value="item.statusCd">{{item.name}}
                        </option>
                    </select>
                </div>
                <div class="col-sm-2" style="margin-top: 5px;">
                    <button type="button" class="btn btn-primary btn-sm" v-on:click="_queryRepairSettingMethod()">
                        <vc:i18n name="查询" namespace="repairSetting"></vc:i18n>
                    </button>
                    <button type="button" class="btn btn-info btn-sm" v-on:click="_queryResetRepairSettingMethod()"
                        style="margin-left: 20px;">
                        <vc:i18n name="重置" namespace="repairSetting"></vc:i18n>
                    </button>
                </div>
            </div>
        </div>
    </div>

    <div class="ibox">
        <div class="ibox-title">
            <h5>
                <vc:i18n name="报修设置" namespace="repairSetting"></vc:i18n>
            </h5>
            <div class="ibox-tools" style="top:10px;">
                <button type="button" class="btn btn-white btn-sm"
                    v-on:click="vc.showMarkdown('/pages/property/repairSetting')">
                    <vc:i18n name="文档" namespace="repairSetting"></vc:i18n>
                </button>
                <button type="button" class="btn btn-primary btn-sm" v-on:click="_openAddRepairSettingModal()">
                    <vc:i18n name="添加" namespace="repairSetting"></vc:i18n>
                </button>
            </div>
        </div>
        <div class="ibox-content">
            <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                <thead>
                    <tr>

                        <th class="text-center">
                            <vc:i18n name="类型名称" namespace="repairSetting"></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name="报修设置类型" namespace="repairSetting"></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name="派单方式" namespace="repairSetting"></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name="区域" namespace="repairSetting"></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name="业主端展示" namespace="repairSetting"></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name="通知方式" namespace="repairSetting"></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name="是否回访" namespace="repairSetting"></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name="办理时长" namespace="repairSetting"></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name="超时预警" namespace="repairSetting"></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name="创建时间" namespace="repairSetting"></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name="操作" namespace="repairSetting"></vc:i18n>
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <tr v-for="repairSetting in repairSettingInfo.repairSettings">
                        <!-- <td class="text-center">{{repairSetting.repairType}}</td> -->
                        <td class="text-center">{{repairSetting.repairTypeName}}</td>
                        <td class="text-center">{{repairSetting.repairSettingTypeName}}</td>
                        <td class="text-center">{{repairSetting.repairWayName}}</td>
                        <td class="text-center">{{repairSetting.publicArea == 'T'?'非房屋':'房屋'}}</td>
                        <td class="text-center">{{repairSetting.isShow == 'Y'?'是':'否'}}</td>
                        <td class="text-center" v-if="repairSetting.notifyWay == 'SMS'">短信</td>
                        <td class="text-center" v-else-if="repairSetting.notifyWay == 'WORK_LICENSE'">微信+员工工牌</td>
                        <td class="text-center" v-else>微信</td>
                        <td class="text-center">{{repairSetting.returnVisitFlagName}}</td>
                        <td class="text-center">{{repairSetting.doTime}}小时</td>
                        <td class="text-center">{{repairSetting.warningTime}}分钟</td>
                        <td class="text-center">{{repairSetting.createTime}}</td>
                        <td class="text-center">
                            <div class="btn-group">
                                <button class="btn-white btn btn-xs"
                                    v-on:click="_openEditRepairSettingModel(repairSetting)">
                                    <vc:i18n name="修改" namespace="repairSetting"></vc:i18n>
                                </button>
                            </div>
                            <div class="btn-group">
                                <button class="btn-white btn btn-xs" v-on:click="_viewRepairTypeUser(repairSetting)">
                                    <vc:i18n name="绑定维修师傅" namespace="repairSetting"></vc:i18n>
                                </button>
                            </div>
                            <div class="btn-group">
                                <button class="btn-white btn btn-xs"
                                    v-on:click="_openDeleteRepairSettingModel(repairSetting)">
                                    <vc:i18n name="删除" namespace="repairSetting"></vc:i18n>
                                </button>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
            <!-- 分页 -->
            <div class="row margin-top-xs">
                <div class="col-sm-9">
                    <div> 派单方式：</div>
                    <div> 1、抢单 是员工（报修类型下的师傅）自主抢单 维修处理，比较实用于物业每单给维修是否提成的场景</div>
                    <div> 2、指派 专门由客服派单员工（报修类型下的师傅）维修处理，一般物业的选择</div>
                    <div> 3、轮训 由系统定时派单员工（报修类型下的师傅）维修处理</div>
                    <div>区域：</div>
                    <div> 小区、楼栋、单元 为非房屋类区域 房屋为房屋类区域</div>
                    <div> 注意：一般业主房屋报修 我们必须要添加一个房屋类区域的类型才能正常报修</div>
                </div>
                <div class="col-sm-3 float-right">
                    <vc:create path="frame/pagination"></vc:create>
                </div>
            </div>
        </div>
    </div>
    <vc:create path="work/addRepairSetting" callBackListener="" callBackFunction=""></vc:create>
    <vc:create path="work/editRepairSetting"></vc:create>
    <vc:create path="work/deleteRepairSetting"></vc:create>
</div>